luci-app-sqm: fix JS error if service is disabled
authorDirk Brenken <[email protected]>
Sat, 5 Jun 2021 07:43:46 +0000 (09:43 +0200)
committerJo-Philipp Wich <[email protected]>
Wed, 7 Jul 2021 15:20:09 +0000 (17:20 +0200)
commit0d456613695d6fd133834ab29f0e12c5416bee9e
tree22a27c2f51bd5c131ebfdd4e32c6f8e9cf091c7b
parente52e1de53a835a002bc0a3e1dcf1654f394f2824
luci-app-sqm: fix JS error if service is disabled

* fix a 'resource not found error' if the sqm service has been disabled
  and the dir '/var/run/sqm/available_qdiscs' not exist
* inform the user about this issue and provide a button
  to enable & start the service

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit e76d9cc7673ffbebd8887bcfc14542c1269288e0)
applications/luci-app-sqm/htdocs/luci-static/resources/view/network/sqm.js
applications/luci-app-sqm/root/usr/share/rpcd/acl.d/luci-app-sqm.json